<div id="view-content">
	<div id="posts" class="backend-item posts">
	<br>
	<h2 class="backend-h2"><span class="img"></span>
		<span class="btAdd">Thông tin đăng ký của khách hành
<!--        	<a href="<?php //echo $this->baseUrl('/admin/register/add/');?>">Thêm mới người dùng</a>-->
        </span>
    </h2>
    <p class="saporator"><br /></p>
    
    <form action="" method="get">
        <p class="search_box">
            <input class="sbt hover focus" type="text" name="search_box_text" title="Nhập vào tiêu đề bài viết cần tìm kiếm"/>
            <input class="sbc input-hover" type="submit" name="search_box_sumit"  value="Tìm"/>
        </p><!-- End .search_box-->
         <p class="saporator sf"><br /></p>
         
        <div class="table_nav">
                <div class="table_nav_left">
                    <select id="tbn_cat" name="tbn_cate">
                        <option value="0" selected="selected">Hiển thị tất cả</option>
                    <?php 
//                    	foreach ($this->menu2s as $menu2) {
//                    		if(isset($_REQUEST['menu2Id']) && $_REQUEST['menu2Id'] == $menu2['menu2Id']){
//                    			echo '<option selected value ="'.$menu2['menu2Id'].'">'.$menu2['tenMenu2'].'</option>';	
//                    		}else
//                    			echo '<option value ="'.$menu2['menu2Id'].'">'.$menu2['tenMenu2'].'</option>';
//                    	}
                    ?>                 
                    </select>
                    
                    <input type="submit" value="Lọc" name="tbn_filter" class="tbn_button input-hover"/> 
                    <input type="submit" value="Xóa" name="cmdDel" class="tbn_button input-hover"/>
                    
                </div><!-- end .table_nav_left -->
                <div class="table_nav_pages">  
                <?php 
//                	echo $this->paginationControl($this->paginatorUsers,'sliding','paginator.phtml');
                		
                ?>
                </div>
            </div><!-- End .table_nav-->
        <table id="p_register">
            <thead>
                <tr>
                    <th class="col-1-register"><input class="check-all" type="checkbox" /></th>
                    <th class="col-2-register">Tên khách</th>
                    <th class="col-3-register">Dịch vụ</th>
                    <th class="col-4-register">Ngày dự kiến</th>
                    <th class="col-5-register">Thời gian thuê</th>
                    <th class="col-6-register">Dịch tích thuê</th>
                    <th class="col-7-register">Xem chi tiết</th>
                </tr>
            </thead>
            <tbody>
            <?php 
            	foreach ($this->paginatorRegister as $register){
//            		$status = ($register['trangThai'] == 1) ? "Đã đăng" : "Chưa đăng";
//            		if($register['thungRac'] != 1) continue;
            ?>    
                <tr>
                    <th class="col-1-register">
                        <input class="sub-check" name="register-check[]" type="checkbox" value="<?php echo $register['khachId'];?>"/>
                    </th>
                    <th class="col-2-register post_title">
                    	<strong><a href="" class="title_ct"><?php echo $register['nguoiDaiDien'];?></a></strong> 
	                    <div class="row_action">
	                        <span class="row_edit">
	                        	<a href="<?php echo $this->baseUrl('/admin/register/add/?edit&register='.$register['khachId']);?>">Sửa</a>|
	                        </span>
	                        <span class="row_del">
	                        	<a href="<?php echo $this->baseUrl('/admin/register/delete/?delete&register='.$register['khachId']);?>">Xóa</a>
	                        </span>                        
	                    </div>
                    </th>
                    <th class="col-3-register"><?php echo $register['tenMenu2'];?> </th>
                    
                    <th class="col-4-register"><?php echo $register['ngayDuKien']; ?></th>
                    <th class="col-5-register"><?php echo $register['thoiGianThue']; ?></th>
                    <th class="col-6-register register_title"> <?php echo $register['dienTichThue']; ?></th>
                    <th class="col-7-register">
                    	<a href="<?php echo $this->baseUrl('/admin/register/detail/?khach='.$register['khachId']."&dv=".$register['menu2Id']);?>">Xem chi tiết</a>
                    </th>
                </tr>                                          
            <?php 
            	}
            ?>             
            </tbody>
            <tfoot>
                <tr>
                    <th class="col-1-register"><input class="check-all" type="checkbox" /></th>
                    <th class="col-2-register">Tên khách</th>
                    <th class="col-3-register">Dịch vụ</th>
                    <th class="col-4-register">Ngày dự kiến</th>
                    <th class="col-5-register">Thời gian thuê</th>
                    <th class="col-6-register">Dịch tích thuê</th>
                    <th class="col-7-register">Xem chi tiết</th>
                </tr>
            </tfoot>
        </table>
                
    </form>
</div><!-- end #registers -->
	
</div>